package com.gao.api.gate.quick.core.lifecycle;

import java.util.List;

/**
 * <p></p>
 *
 * @author gaoshuangwen
 * @since 2021/12/23 14:00
 */
public interface Lifecycle {


    public void addListener(LifecycleListener listener);


    public List<LifecycleListener> getListener();


    public void removeListener(LifecycleListener listener);


    public void init() throws LifecycleException;


    public void start() throws LifecycleException;


    public void stop() throws LifecycleException;


    public LifecycleState getCurrentState();


}
